package com.freewater.javabase.demo.designpattern.command2.complete.command;

import com.freewater.javabase.demo.designpattern.command2.complete.receiver.CellingFan;

/**
 * Created by FreeWater on 2017/4/4.
 */
public class CellingFanOnCommand implements Command {

	private CellingFan cellingFan;

	public CellingFanOnCommand(CellingFan cellingFan){
		this.cellingFan = cellingFan;
	}

	@Override
	public void execute() {
		this.cellingFan.on();
	}
}
